import fetch from '@/utils/fetch'

export function regworkorder (username, pic, building, addressDetail, remark, STID) {
  return fetch({
    url: '/Workorder/',
    method: 'post',
    data: {username, pic, building, addressDetail, remark, STID}
  })
}
export function getworkorder (query) {
  return fetch({
    url: '/Workorder/GetWorkorder',
    method: 'get',
    params: query
  })
}
